<%@page import="java.util.ResourceBundle"%>
<%@page import="java.util.Locale"%>
<%@page import="entity.Question" %>
<%@page import="model.QuestionModel" %>
<%@page import="model.TagModel" %>
<%@page import="java.util.List"%>
<%
	if(request.getParameter("alias")!=null&&request.getParameter("language")!=null){
		%>
			<%String alias = request.getParameter("alias").toString(); %>
<%String lang = request.getParameter("language").toString();%>
<%
	QuestionModel questionModel = new QuestionModel();
	TagModel tagModel = new TagModel();
	Question detail = questionModel.findByAlias(alias, lang);	
	HttpSession ss = request.getSession(true);
	ResourceBundle resource = (ResourceBundle) ss.getAttribute("language");
%>

<%
	if(detail.countOtherTag()>0){
	%>	
		<h3>Other <%=resource.getString("tag") %></h3>
		<ul class="ret">
		<%
			for(String tagItem: detail.getOtherTags()){
				%> 
					<%
						if(tagItem!=null){
							%>
								<li><a class="tags" href="<%=request.getContextPath()%>/<%=resource.getString("code")%>/tag/<%=tagItem%>"><%=tagItem%></a><span class="it"> x <%= tagModel.find(tagItem).getCount() %></span></li>										
							<%
						}
					%>								
				<% 
			}
		%>  
		</ul>
	<%
	}
%>
		<%		
	}
%>

